import request from '@/utils/request'

//查询工单数量
export function getTaskCount() {
  return request({
    url: '/manage/statistic/taskNum',
    method: 'get'
  })
}

//合作商统计
export function queryPartnerDataApi() {
  return request({
    url: '/manage/statistic/partnerData',
    method: 'get'
  })
}

//出货商品热榜统计
export function querySkuShipDataApi() {
  return request({
    url: '/manage/statistic/skuShipData',
    method: 'get'
  })
}

//运营运维人员数量统计
export function queryEmpNumDataApi() {
  return request({
    url: '/manage/statistic/empNumData',
    method: 'get'
  })
}

// 补货数量统计
export function queryReplenishNumDataApi() {
  return request({
    url: '/manage/statistic/replenishNumData',
    method: 'get'
  })
}
// 补货数量统计
export function queryShipNumDataApi() {
  return request({
    url: '/manage/statistic/shipNumData',
    method: 'get'
  })
}










// 查询人员列表列表
export function listEmp(query) {
  return request({
    url: '/manage/emp/list',
    method: 'get',
    params: query
  })
}

// 查询人员列表详细
export function getEmp(id) {
  return request({
    url: '/manage/emp/' + id,
    method: 'get'
  })
}

// 新增人员列表
export function addEmp(data) {
  return request({
    url: '/manage/emp',
    method: 'post',
    data: data
  })
}

// 修改人员列表
export function updateEmp(data) {
  return request({
    url: '/manage/emp',
    method: 'put',
    data: data
  })
}

// 删除人员列表
export function delEmp(id) {
  return request({
    url: '/manage/emp/' + id,
    method: 'delete'
  })
}
